//
//  ViewController.swift
//  SelfGoodAsOldPhomes
//
//  Created by panda on 17/3/14.
//  Copyright © 2017年 panda. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    let img_height = 3520/2;
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        view.addSubview(scrollV);
        scrollV.addSubview(imgV);
    }

    
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews();
        scrollV.frame = CGRect(x: 0, y: 0, width: 375, height: UIScreen.main.bounds.height-50);
        scrollV.contentSize = CGSize(width: 375, height: img_height)
        imgV.frame = CGRect(x: 0, y: 0, width: 375, height: img_height);
        
    }
    
    
    fileprivate lazy var scrollV : UIScrollView = {
        let scrollV = UIScrollView()
        scrollV.isPagingEnabled = false;
        scrollV.showsVerticalScrollIndicator = false;
        scrollV.bounces = false;
        
        return scrollV;
    }()
    
    fileprivate lazy var imgV : UIImageView = {
        let imgv = UIImageView.init(image: UIImage(named: "新手引导"))
        return imgv;
    }()
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

